module.exports = {
	outputDir:'silkworm',
    baseUrl: '/jiangcan/',
    assetsDir: 'static',
    productionSourceMap: false,
    chainWebpack: config => {
        config.module
          .rule('swf')
          .test(/\.swf$/)
          .use('url-loader')
          .loader('url-loader')
          .options({
            limit: 10000
        })
    },
    devServer: {
        hot:true,
        proxy: {
            '/post':{
                target:'http://192.168.1.197:8880/control/',
                // target:'http://124.89.83.30:90/jcApi/plant:8901',
                changeOrigin:true,
                pathRewrite:{
                    '/post':''
                }
            }
        }
    }
}
